/*
package cn.net.wanji.entity;

import lombok.Data;
import org.apache.poi.hssf.usermodel.*;

*/
/**
 * Created by IntelliJ IDEA.
 *
 * @Author : yangliang
 * @create 2022/11/9 15:20
 *//*

@Data
public class Logger {
    private String recordId;
    private String sendFileSize;
    private Double time;
    private String res;

    public  HSSFWorkbook getHSSFWorkbook(String sheetName, String []title, String [][]values, HSSFWorkbook wb){
        // 创建HSSFWorkbook对象
        if(wb == null){
            wb = new HSSFWorkbook();
        }
        // 在HSSFWorkbook添加一个sheet
        HSSFSheet sheet = wb.createSheet(sheetName);
        // 在sheet中添加表头第0行
        HSSFRow row = sheet.createRow(0);
        // 创建单元格，并设置值表头格式
        HSSFCellStyle style = wb.createCellStyle();
        short align=2;
        style.setAlignment(align); // 创建一个居中格式

        HSSFCell cell = null;
        //添加标题内容
        for(int i=0;i<title.length;i++){
            cell = row.createCell(i);
            cell.setCellValue(title[i]);
            cell.setCellStyle(style);
        }
        //添加正文内容
        for(int i=0;i<values.length;i++){
            row = sheet.createRow(i + 1);
            for(int j=0;j<values[i].length;j++){
                row.createCell(j).setCellValue(values[i][j]);
            }
        }

        return wb;
    }
}
*/
